package cn.lzy.demo;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Description
 * @Author lzy
 * @Date 2023/12/5 15:14
 * @Version
 **/
public class TestDemoXml {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("beans.xml");
        DataSource db = ctx.getBean(DataSource.class);
        System.out.println("db = " + db);
    }
}
